#include<iostream>
#include<vector>
using namespace std;

vector<int> nums;
int lowbit(int x) {
    return x & -x;
}

int main() {
    int n;
    cin >> n;
    if(n % 2 == 1) {
        cout << -1;
        return 0;
    }
    while(n) {
        int t = lowbit(n);
        nums.push_back(t);
        n -= t;
    }

    for(int i=nums.size()-1; i >=0; i--) {
        cout << nums[i] << " ";
    }

    return 0;
} 